package cn.wolfcode.luowowo.community.mapper;

import cn.wolfcode.luowowo.community.domain.CommunityQuestion;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommunityQuestionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CommunityQuestion record);

    CommunityQuestion selectByPrimaryKey(Long id);

    List<CommunityQuestion> selectAll();

    int updateByPrimaryKey(CommunityQuestion record);

    List<CommunityQuestion> selectForList();

    void addViewnum(@Param("id") Long id, @Param("count") int count);

    void addReplynum(@Param("id") Long id, @Param("count") int count);
}